package com.foreknow.demo7;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        A a = new A();
        a.m1();  //调用哪个类的方法，就要先创建那个类的对象
        B b = new B();
        b.m2();

        Scanner input = new Scanner(System.in);
        String name = input.next();
        System.out.println(name);
    }
}
